package ex.util;

public class CommonUtil {
	public static void swap(int[] input, int i1, int i2) {
		int tmp = input[i1]; 
		input[i1] = input[i2];
		input[i2] = tmp;
	}
	
	public static void print(int[] input) {
		System.out.print("Values:");
		for(int i=0; i<input.length; i++) {
			if(i>0)
				System.out.print(",");
			System.out.print(input[i]);
		}
		System.out.println();
	}
	
	public static void print(double[] input) {
		System.out.print("Values:");
		for(int i=0; i<input.length; i++) {
			if(i>0)
				System.out.print(",");
			System.out.print(input[i]);
		}
		System.out.println();
	}
}
